import request from '@/utils/request'

// 查询考试主列表
export const exammainlist = (query) => {
    return request({
        url: '/system/exam/main/list',
        method: 'get',
        params: query
    })
}

// 教师获取参与项目列表
export const exammainlistbyteacher = (query) => {
    return request({
        url: '/system/exam/main/list/by/teacher',
        method: 'get',
        params: query
    })
}

// 新增考试主
export const exammainAdd = (query) => {
    return request({
        url: '/system/exam/main',
        method: 'post',
        data: query
    })
}

// 修改考试主
export const exammainEdit = (query) => {
    return request({
        url: '/system/exam/main',
        method: 'put',
        data: query
    })
}